package GearCommands;

import Gear.Gear;

/**
 * Implementation of the user command clear.
 * Clean up the screen.
 *
 * @author Rodrigo Martins Racanicci
 */
public class GearCommandClear implements GearCommand {

    @Override
    public void execute(String[] args, Gear gear) {
        String ANSI_CLS = "\u001b[2J";
        String ANSI_HOME = "\u001b[H";

        System.out.print(ANSI_CLS + ANSI_HOME);
        System.out.flush();

        System.out.println("------------------ Gear file manipulator ------------------");
        System.out.println("- Davi Diorio Mendes\t\tddioriomendes@gmail.com");
        System.out.println("- Rodrigo Marints Racanicci\tdiguo.m@gmail.com");
        System.out.println("-----------------------------------------------------------");
        System.out.println("");
    }

}
